#include<stdio.h>
#define SUM 100000
int main()
{
    double total=0,amount,aver;
    int i;
    for (i=1;i<=1000;i++)
    {
        printf("请输入捐款的数目：");
        scanf("%lf",&amount);
        total=total+amount;
        if(total>=SUM)
        break;
        
    }
    aver=total/i;
    printf("捐款人数为：%d\n平均每人捐款数目为：%10.2lf",i,aver);
    return 0;
}